// { "framework": "Vue"} 

/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 404);
/******/ })
/************************************************************************/
/******/ ({

/***/ 301:
/***/ (function(module, exports) {

module.exports = {
  "bottom-bar": {
    "position": "absolute",
    "bottom": "0",
    "height": "100",
    "width": "750",
    "flexDirection": "row",
    "backgroundColor": "#FFFFFF",
    "borderTopWidth": "1",
    "borderTopColor": "#cbcbcb"
  },
  "model-icon": {
    "width": "187",
    "borderWidth": "1",
    "alignItems": "center",
    "justifyContent": "center",
    "borderColor": "#FFFFFF"
  }
}

/***/ }),

/***/ 302:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


var nav = weex.requireModule('navigator');

var imgPrefix = 'root:img/indexIcon/';

exports.default = {
    props: {
        activeKey: {
            type: Number
        }
    },
    data: function data() {
        return {
            btns: [{
                icon: 'un-home.png',
                text: '首页',
                key: 'home',
                url: 'root:com/yx/index.js'
            }, {
                icon: 'un-customer.png',
                text: '客户',
                key: 'customer',
                url: ''
            }, {
                icon: 'un-address.png',
                text: '通讯录',
                key: 'address',
                url: 'root:com/yx/address/address.js'
            }, {
                icon: 'un-user.png',
                text: '我的',
                key: 'my',
                url: ''
            }]
        };
    },


    computed: {},
    methods: {

        //图标的路径
        iconSrc: function iconSrc(img) {
            return imgPrefix + img;
        },


        //设置字体的样式
        fontStyle: function fontStyle(key) {
            if (this.activeKey == key) {
                return { color: '#00c470' };
            }
        },


        //跳转页面
        jumPage: function jumPage(event) {

            var item = this.btns[event.target.attr.dataKey];

            if (item.key == this.activeKey) {
                return;
            }

            nav.push(item.url, function (e) {});
        }
    },
    mounted: function mounted() {
        var key = 'home';
        if (this.activeKey) {
            key = this.activeKey;
        }
        for (var i in this.btns) {
            var item = this.btns[i];
            if (item.key == key) {
                Vue.set(item, 'icon', item.icon.replace('un-', ''));
            }
        }
    }
};

/***/ }),

/***/ 303:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["bottom-bar"],
    on: {
      "click": function($event) {}
    }
  }, _vm._l((_vm.btns), function(item, key) {
    return _c('div', {
      staticClass: ["model-icon"],
      attrs: {
        "dataKey": key
      },
      on: {
        "click": _vm.jumPage
      }
    }, [_c('image', {
      staticStyle: {
        width: "48px",
        height: "48px"
      },
      attrs: {
        "src": _vm.iconSrc(item.icon)
      }
    }), _c('text', {
      style: _vm.fontStyle(item.key)
    }, [_vm._v(_vm._s(item.text))])])
  }))
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 404:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(301)
)

/* script */
__vue_exports__ = __webpack_require__(302)

/* template */
var __vue_template__ = __webpack_require__(303)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "D:\\webStormWorkPlace\\weexYxqApp\\src\\native\\com\\yx\\components\\bottomMen.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-6dee5dd3"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ })

/******/ });